﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using youzackcom.Model;

namespace youzackcom.EntityFrameworkCore.config
{
    public class PermissionGrantsConfig : IEntityTypeConfiguration<PermissionGrants>
    {
        public void Configure(EntityTypeBuilder<PermissionGrants> builder)
        {
            builder.ToTable("T_PermissionGrants");

            builder.Property(x => x.PermissionName).HasMaxLength(200).IsUnicode();
        }
    }
}
